package cn.zhoutao.system;

import cn.zhoutao.system.domain.DictionaryType;
import cn.zhoutao.system.mapper.DictionaryTypeMapper;
import cn.zhoutao.system.service.IDictionaryTypeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {
    @Autowired
    private IDictionaryTypeService dictionaryTypeService;

    @Autowired
    private DictionaryTypeMapper dictionaryTypeMapper;
    @Test
    public void test(){
        System.out.println(dictionaryTypeService.queryAll());
    }

    @Test
    public void test01(){
        DictionaryType dictionaryType = new DictionaryType();
        dictionaryType.setName("ad");
        dictionaryType.setSn("dasd");
        dictionaryTypeMapper.save(dictionaryType);
    }

    @Test
    public void test02(){
        System.out.println(System.currentTimeMillis());
    }
}
